package com.dailyblue.java.cloud.emp.feign;

import com.dailyblue.java.cloud.commons.bean.Dept;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "example-dept")
public interface DeptFeign {
    @GetMapping("/dept/{id}")
    Dept find(@PathVariable("id") int id);
}
